import axios from "@/api/index.js"

// 购物车列表
function cartList(data) {

	return axios({
		url: "/cart/cartList",
		method:'get',
		data
	})
}
//删除商品
function deleteAction(data) {

	return axios({
		url: "/cart/deleteAction",
		method:'get',
		data
	})
}
// 添加购物车
function addCart(data) {

	return axios({
		url: "/cart/addCart",
		method:'post',
		data
	})
}
// 添加收藏
function addcollect(data) {

	return axios({
		url: "/collect/addcollect",
		method:'post',
		data
	})
}
//获取收藏列表
function listAction(data) {

	return axios({
		url: "/collect/listAction",
		method:'get',
		data
	})
}
export{
	cartList,
	deleteAction,
	addCart,
	addcollect,
	listAction
}

